/**
 * @Author 12629
 * @Description：
 */
public class Date {
    public int year;
    public int moth;
    public int day;

    public Date(int year, int moth, int day) {
        //this();
        this.year = year;
        this.moth = moth;
        this.day = day;
        System.out.println("Date(int,int,int)");
    }

    public Date() {
        /*this.year = 2024;
        this.moth = 7;
        this.day = 13;*/
        this(2024,7,13);
        System.out.println("Date()");
    }

   /* public Date(int year,int moth,int day) {
        this.year = year;
        this.moth = moth;
        this.day = day;
        System.out.println("Date(int,int,int)");
    }*/




    /*public void setDate(*//*Date this,*//*int y,int m,int d) {
        this.year = y;
        this.moth = m;
        this.day = d;
    }*/

    public void setDate(int year,int moth,int day) {
        this.year = year;
        this.moth = moth;
        this.day = day;
    }

    public void printDate() {
        System.out.println(this.year+"年"
                +this.moth+"月"+this.day+"日");
    }

    public void show() {
        this.printDate();
    }
}
